﻿using System.ComponentModel;


namespace ImageBrowser
{
    // 当前墙纸信息
    public class CurWallPaperConfig : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged = delegate { };

        public CurWallPaperConfig()
        {
            Restore = false;
        }

        private string _CurWallPaperPath;
        public string CurWallPaperPath
        {
            get { return _CurWallPaperPath; }
            set { _CurWallPaperPath = value; }
        }

        private bool _Restore;
        public bool Restore
        {
            get { return _Restore; }
            set { _Restore = value;  OnPropertyChanged("Restore"); }
        }


        private void OnPropertyChanged(string PropertyName)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(PropertyName));
        }
    }
}